package com.shangke.corejava.ch7.homework;
import java.util.Scanner;
interface Fruit{
	
}
public class Gardener{
	public Fruit create(){
		Scanner sc=new Scanner(System.in);
		String name=sc.next();
		switch(name){
		case "苹果":
			new Apple();
			break;
		case "梨":
			new Banana();
			break;
		case "桔子":
			new Grape();
			break;
		}
		
		sc.close();//停止
		return null;
	}
}

